-- GENERATED SPELL FOR [Risen Vrykul Ancestor] --


function spell0_24871(pUnit, Event) --@Perturbing Strike,Self--
pUnit:FullCastSpellOnTarget(49841,pUnit)
pUnit:RegisterEvent('Sorts_24871', 30298, 1)
end

function Sorts_24871(pUnit, Event)
local choix_sorts_24871 = math.random(0, 0)
if choix_sorts_24871 == 0 then
pUnit:RegisterEvent('spell0_24871', 1, 1)
end
end

function mob24871_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24871', math.random(1500, 3000), 1)
end

function mob24871_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24871_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24871_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24871, 1, 'mob24871_Action')
RegisterUnitEvent(24871, 2, 'mob24871_Leave')
RegisterUnitEvent(24871, 3, 'mob24871_Kill')
RegisterUnitEvent(24871, 4, 'mob24871_Die')
